<include file='Public/header'/>
	<body>
		<div class="mui-content">
		    <header class="mui-bar mui-bar-nav pub_head">
		        <a class="mui-action-back mui-icon mui-pull-left iconfont icon-left" href="javascript:history.go(-1)"></a>
		        <h1 class="mui-title">精彩瞬间</h1>
		        <a class="mui-icon mui-pull-right iconfont icon-house1" style="font-size:26px;padding-top:0.5rem;" href='/'></a>
		    </header>
		    <ul class="mui-table-view mTop moment_list">


				<?php if($data){
                               foreach($data as $key=>$val){ ?>

		        <li class="mui-table-view-cell mui-media">
		            <a href="{:U('WonderfulMoment/detail',array('id'=>$val['id']))}">
		                <img class="mui-media-object mui-pull-left" src="{$val['picture']}">
		                <div class="mui-media-body moment_list_title">
		                    {$val['title']}
		                    <p class="mui-ellipsis"><?php echo mb_substr($val[ 'content'],0,80, 'utf-8'). '......'; ?></p>
		                    <p class="mui-ellipsis moment_list_time">{$val['add_time']|date="Y-m-d ",###}</p>
		                </div>
		            </a>
		        </li>


				</foreach>
				<?php }}?>

				<if condition="empty($data)">
					<div class="mui-content">
						<div class="no-message">
							<i class="iconfont icon-zanwuxiaoxitixing"></i>
							<p>暂无消息</p>
						</div>
					</div>
				</if>

			</ul>
		</div>
	</body>
</html>
